package initConfig

/**
 * 系统初始化时对一些数据
 * Created by Administrator on 2018-05-04.
 */
class SysInitData {

    public static String WEB_REAL_PATH

    public static final String MybatisConfigXML = "mybatis-config.xml"
    //角色类型
    public static final String FUNC_ROLE = "FUNC_ROLE"
    public static final String DATA_ROLE = "DATA_ROLE"
     public static final Map RoleTypeMap = ["FUNC_ROLE":"功能角色","DATA_ROLE":"数据角色" ]
    //定义初始化管理员角色编码
    public static final Map AdminRole = ["ADMIN_FUNC_ROLE":"超级管理员角色","ADMIN_DATA_ROLE":"超级数据角色"]
    public static final String ADMIN_FUNC_ROLE = "ADMIN_FUNC_ROLE"
    public static final String ADMIN_DATA_ROLE = "ADMIN_DATA_ROLE"

    //用户性别
    public static final Map UserGenderMap = ["1":"男","2":"女","3":"其他"]

    //当前用户 session key
    public static final String SESSION_CURRENT_USER = "SESSION_CURRENT_USER"
    public static final String SESSION_CURRENT_USER_NO = "SESSION_CURRENT_USER_NO"
    public static final String SYS_ADMIN = "admin"
    public static final String TEST_NAME = "test"
    //常用状态参数
    public static final Map BoolMap = ["1":"是","0":"否"]

 //操作权限类型
    public static final String ROW_BUTTON  = "ROW_BUTTON"
    public static final String FORM_BUTTON = "FORM_BUTTON"
    public static final Map OperateAuthType = ["${ROW_BUTTON}":"行级权限","${FORM_BUTTON}":"Form级权限"]

    //用户级别：
    public static final Map USER_GRADE = [ 0:"超级管理员角色",1:"菜单管理员角色",2:"数据管理员角色",3:"普通用户",4:"非法用户"]
    public static final List USER_GRADE_ADMIN_FUNC = [0,1]
    public static final List USER_GRADE_ADMIN_DATA = [0,2]
}
